package com.jspx.txweb.evasive.condition;

import com.jspx.txweb.util.RequestUtil;
import com.jspx.utils.IpUtil;

import javax.servlet.http.Cookie;

/**
 * Created by Administrator on 2017/6/15.
 *
 */
public class CookieDecide extends AbstractDecide  {
    public boolean execute()
    {
        Cookie[] cookies = request.getCookies();
        for (Cookie cookie:cookies)
        {
            if (content.equalsIgnoreCase(cookie.getName())) return true;

        }
        return false;
    }

}
